//-----------------------------------------------------------------------
// <copyright file="a_SurveyService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_SurveyService
    {
        #region a_Survey

        public static void Createa_Survey(a_Survey a_Survey)
        {            
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                a_SurveyDAO.Createa_Survey(a_Survey);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Survey(a_Survey a_Survey)
        {            
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                a_SurveyDAO.Updatea_Survey(a_Survey);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Survey(int qid)
        {            
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                a_SurveyDAO.Deletea_Survey(qid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Survey Geta_Survey(int qid)
        {            
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                return a_SurveyDAO.Geta_Survey(qid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_SurveyCollection Geta_SurveyList(a_SurveyColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                return a_SurveyDAO.Geta_SurveyList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_SurveyCollection Geta_SurveyList(a_SurveyColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                return a_SurveyDAO.Geta_SurveyList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_SurveyCollection Geta_SurveyList_alphabet_stt(int stt,string mychar, a_SurveyColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                return a_SurveyDAO.Geta_SurveyList_alphabet_stt(stt,mychar, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_SurveyCollection Geta_SurveyList_alphabet_stt(int stt, string mychar, a_SurveyColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                return a_SurveyDAO.Geta_SurveyList_alphabet_stt(stt,mychar, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_SurveyCollection Geta_SurveyList_stt(int stt, a_SurveyColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                return a_SurveyDAO.Geta_SurveyList_stt(stt, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_SurveyCollection Geta_SurveyList_stt(int stt, a_SurveyColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_SurveyDAO a_SurveyDAO = new a_SurveyDAO();
                return a_SurveyDAO.Geta_SurveyList_stt(stt, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }       

        #endregion
    }
}